//
//  ParamLabelCell.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-24.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "ParamLabelCell.h"

@implementation ParamLabelCell

- (void)dealloc
{
    
    [_leftLabel release];
    [_rightLabel release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        
        self.leftImageView = [[UIImageView alloc]init];
        //        self.leftImageView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.leftImageView];
        [self.leftImageView release];
        
        
        self.leftLabel = [[UILabel alloc]init];
        self.leftLabel.textAlignment = NSTextAlignmentLeft;
        self.leftLabel.font = [UIFont systemFontOfSize:14];
        [self.leftLabel setTextColor:[UIColor purpleColor]];
        [self.contentView addSubview:self.leftLabel];
        [_leftLabel release];
        
        
        self.rightLabel = [[UILabel alloc]init];
        [self.rightLabel setTextAlignment:NSTextAlignmentRight];
        [self.contentView addSubview:self.rightLabel];
        [_rightLabel release];
    }
    return self;
}

-(void)layoutSubviews
{
    self.leftImageView.frame = CGRectMake(10, 10, 32, 30);
    self.leftLabel.frame = CGRectMake(52, 0, 160, 50);
    self.rightLabel.frame = CGRectMake(160, 0, 150, 50);
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
